package com.yisu.auction.manager.core.mapper;


import com.yisu.auction.ewf.entity.GoodsType;
import com.yisu.auction.manager.domain.request.baseInfoPackage.GoodsCategoryRequest;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface GoodsTypeMapper {
    int deleteByPrimaryKey(Long id);

    int insert(GoodsType record);

    int insertSelective(GoodsType record);

    GoodsType selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(GoodsType record);

    int updateByPrimaryKey(GoodsType record);


    /**
     * author:赵杰
     * Business Description : 分页获取商品分类
     * @param goodsCategoryRequest 分页请求信息
     * @return 商品分类列表
     */
    List<GoodsType> getGoodsTypeByPage(GoodsCategoryRequest goodsCategoryRequest);

    /**
     * author:黄萧林
     * Business Description : 获取最大排序值+1
     * @return
     */
    int getMaxSort();

    /**
     * author:赵杰
     * Business Description : 通过分类名称获取商品类目分类
     * @param typeName
     * @return
     */
    GoodsType selectByTypeName(@Param("typeName") String typeName);
}